home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-05-05 | 3.1 KB | 104 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="9"
- "COUNT"="1"
- "UIPATH"="Internet\Internet Explorer\Appearance"
- "NAME"="Appearance Options"
- "LANGUAGE"="VBScript"
- "VERSION"="2.00"
- "TEXT 1"="huah!"
- "DESCRIPTION 1"="Some appearance settings of Internet Explorer you might consider changing."
- "DESCRIPTION 2"=NOTE: Hidding the "Options" menu will also disable the "Internet" applet inside Control Panel!"
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to Sebastien Maurice for some of this settings!"
- "COMMENT 2"="Thanks to Ian Moran [ian@allwebsales.be] for the idea"
-
- dim rgVals()
- dim rgDesc()
-
- ReDim rgVals(8)
- ReDim rgDesc(8)
-
- 'All DW
- rgDesc(0)="Show ""File"" -> ""Open"" command"
- rgVals(0)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileOpen"
-
- rgDesc(1)="Show ""File"" -> ""New"" command"
- rgVals(1)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileNew"
-
- rgDesc(2)="Show ""File"" -> ""Save""/""Save as"" command"
- rgVals(2)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserSaveAs"
-
- rgDesc(3)="Show ""Tools"" -> ""Options"" command"
- rgVals(3)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserOptions"
-
- rgDesc(4)="Show ""Edit"" -> ""Find"" command"
- rgVals(4)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFindFiles"
-
- rgDesc(5)="Enable ""Favorites"" menu"
- rgVals(5)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFavorites"
-
- rgDesc(6)="Enable right-click HTML menu"
- rgVals(6)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu"
-
- rgDesc(7)="Enable ""Theater Mode""/""Kiosk Mode"" (F11)"
- rgVals(7)="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoTheaterMode"
-
- rgDesc(8)="Enable ""Set as Wallpaper..."" menu on HTML menu"
- rgVals(8)="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoChangingWallpaper"
-
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- for l=lbound(rgDesc) to ubound(rgDesc)
- Call ReadSetting(l+1,rgVals(l),rgDesc(l))
- next
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- for l=lbound(rgDesc) to ubound(rgDesc)
- Call WriteSetting(l+1,rgVals(l))
- next
- END SUB
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-
-
- Sub WriteSetting(ITM,VAL)
- b=GetUIElementEx(ITM)
- if b=false then
- Call RegWriteValue(VAL,1,2)
- Call Restart()
- else
- If RegValueExists(VAL) then
- Call RegDeleteValue(VAL)
- Call Restart()
- end if
- end if
- end sub
-
- 'ITM = Number, VAL = RegVal Path, TXT = Text for UI
- Sub ReadSetting(ITM,VAL,TXT)
- Call SetUIElement(ITM,TXT)
-
- i=RegReadValue(VAL)
- if IsEmpty(i) then
- Call SetUIElementEx(ITM,true)
- else
- if i<>1 then
- Call SetUIElementEx(ITM,true)
- end if
- end if
- end sub
-
-